package com.formula.propertyshop.view.phone;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.formula.propertyshop.R;
import com.formula.propertyshop.utils.Const;
import com.formula.propertyshop.view.common.BaseCalculationActivity;

public class ChartActivity extends BaseCalculationActivity{
	public void onCreate(Bundle saveInstance){
		super.onCreate(saveInstance);
		TextView title = (TextView) findViewById(R.id.txtTitle);
		title.setText(getString(R.string.chart));
		Bitmap bm = (Bitmap)getIntent().getParcelableExtra(Const.CALCULATE_IMG);
		if(bm==null)
			bm = Const.CATCH_CHART;
		ImageView img = (ImageView) findViewById(R.id.imgView);
		img.setImageBitmap(bm);
	}
	@Override
	protected void initUI() {
		setContentView(R.layout.chart);		
	}
	
}
